const rectangle1 = {
    name: "矩形 1",
    width: 10,
    height: 20,
    area: function () {
    return this.width * this.height;
    },
   };
   const rectangle2 = {
    name: "矩形 2",
    width: 30,
    height: 40,
    area: function () {
    return this.width * this.height;
    },
   };
   console.log(rectangle1.area()); // 输出：200
   console.log(rectangle2.area()); // 输出：1200